package io.renren.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.api.dao.UserCollectDriverDao;
import io.renren.modules.api.entity.UserCollectDriverEntity;
import io.renren.modules.api.service.UserCollectDriverService;



@Service("userCollectDriverService")
public class UserCollectDriverServiceImpl implements UserCollectDriverService {
	@Autowired
	private UserCollectDriverDao userCollectDriverDao;
	
	@Override
	public UserCollectDriverEntity queryObject(Long id){
		return userCollectDriverDao.queryObject(id);
	}
	
	@Override
	public List<UserCollectDriverEntity> queryList(Map<String, Object> map){
		return userCollectDriverDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userCollectDriverDao.queryTotal(map);
	}
	
	@Override
	public void save(UserCollectDriverEntity userCollectDriver){
		userCollectDriverDao.save(userCollectDriver);
	}
	
	@Override
	public void update(UserCollectDriverEntity userCollectDriver){
		userCollectDriverDao.update(userCollectDriver);
	}
	
	@Override
	public void delete(Long id){
		userCollectDriverDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		userCollectDriverDao.deleteBatch(ids);
	}
	
}
